#include <iostream>
#include <iterator>
#include <vector>
#include <fstream>
#include <functional>

#include <string>


using namespace std;


int main()
{
    ostream_iterator <string> it(cout," ");
    *it="Hello";
    *it="World";
    
    vector<string> tab;

    std::ifstream fichier("mama.txt");
    istream_iterator<string> is(fichier);
    istream_iterator<string> haha;
    copy(is,haha,back_inserter(tab));

    for ( vector<string>::iterator itt = tab.begin(); itt!= tab.end(); ++itt )
          *it=*itt;

    *it = *min_element(istream_iterator<string>(fichier),istream_iterator<string>());

           return 0;
}



